export default {
  name: 'myCoupon',
  data () {
    return {
      counponType: 1,
      availableCouponArr: [1, 2, 3],
      unavailableCouponArr: [
      	{isUsed: 1},
      	{isUsed: 1},
      	{isUsed: 1},
      	{isUsed: 1}
      ],
      expiredCouponArr: [
      	{isExpired: 1},
      	{isExpired: 1},
      	{isExpired: 1},
      	{isExpired: 1}
      ],
      markShow: -1,
      hasCoupon: true 
    }
  },
  mounted: function(){
  	window.document.title = "我的优惠券";
  },
  methods: {
		toAvailable: function(){
			this.isActive = 0;
			this.$router.push("/myCoupon/available");
		},
		toUsed: function(){
			this.isActive = 1;
			this.$router.push("/myCoupon/used");
		},
		toExpired: function(){
			this.isActive = 2;
			this.$router.push("/myCoupon/expired");
		}
	}
}